include_directories(${CMAKE_SOURCE_DIR}/src/xplatform)
file (GLOB_RECURSE CLIENT_SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
include_directories(. ${CMAKE_SOURCE_DIR}/src/register)
message(STATUS "CLIENT_SRC_FILES: ${CLIENT_SRC_FILES}")
add_executable(test_register_client ${CLIENT_SRC_FILES})
include_directories(${CMAKE_SOURCE_DIR}/src/tool ${CMAKE_SOURCE_DIR}/src/register)
target_link_libraries(test_register_client PRIVATE xplatform protobuf protoc register_client)
if(WIN32)
  target_link_libraries(test_register_client PRIVATE ws2_32)
endif()
set_out_path(test_register_client)
set_runtime_name(test_register_client)